package com.gump.essay.hutool;

import cn.hutool.http.HttpUtil;

/**
 * 简易版http服务器
 * @auther zzc
 * @date 2020/12/3 9:20
 */
public class HutoolHttp {

    public static void main(String[] args) {
        doSomeThing();;
    }
    public static void  doSomeThing(){
        HttpUtil.createServer(8888)
                .addAction("/",(req,res)->{
                    res.write("我是hutool-http服务器");
                }).start();
    }
}
